Text Property (Message Object) 

The Text property returns or sets the body text of the message as a string. Read/write.

Syntax

objMessage.Text

Data Type

String

Remarks

The maximum size of the body text can be limited by the tool that you use to manipulate string variables (such as Microsoft Visual Basic).

Note that the Text property is a plain text representation of the message body and does not support formatted text.

The Text property corresponds to the MAPI property PR_BODY.

Example

This example sets the body text of a message:

Dim objMessage As Object    ' assume valid message

objMessage.Text = "Thank you for buying Microsoft Home(TM) products."

 

See Also

Subject, Property (Message Object)